#include "My_memory.h"

#include <stdio.h>

int main()
{
	char str1[] = "123456";
	My_memcpy(str1,str1+3,4);
	printf("%s\n",str1);
	
	char str2[] = "123456";
	My_memmove(str2+2,str2,4);
	printf("%s\n", str2);

	char str3[] = "123456";
	My_memset(str3,'x',sizeof(str3)-1);
	printf("%s\n",str3);

	char str4[] = "123456";
	char str5[] = "1345678";
	if (My_memcmp(str4, str5, 6))
	{
		printf("true\n");
	}
	else
	{
		printf("false\n");
	}
	return 0;
}
